package com.gomore.opple.data;

import android.content.Context;


import com.gomore.opple.data.local.LocalDataRepository;
import com.gomore.opple.data.local.LocalDataSource;
import com.gomore.opple.data.remote.RemoteDataRepository;
import com.gomore.opple.data.remote.RemoteDataSource;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

@Module
public class DataRepositoryModule {

    @Singleton
    @Provides
    @Local
    LocalDataSource provideLocalDataSource(Context context) {
        return new LocalDataRepository(context);
    }

    @Singleton
    @Provides
    @Remote
    RemoteDataSource provideRemoteDataSource() {
        return new RemoteDataRepository();
    }
}
